<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="include/header"></head>
<body class="layui-layout-body">
	<div class="layui-layout layui-layout-admin">
		<div class="layui-header">
			<div class="layui-logo" style="font-size: 30px;">SpringBoot</div>
			<ul class="layui-nav layui-layout-right">
				<li class="layui-nav-item"><a href="main1.html">模板1</a></li>
				<li class="layui-nav-item"><a href="javascript:;"
					th:text="${session.USERLOGIN.user.name}"> </a></li>
				<li class="layui-nav-item"><a href="javascript:;" id="logout">注销</a></li>
			</ul>
		</div>

		<div class="layui-side layui-bg-black">
			<div class="layui-side-scroll">
				<!-- 左侧导航区域（可配合layui已有的垂直导航） -->
				<ul class="layui-nav layui-nav-tree" lay-filter="test"
					id="navbar-nav">
				</ul>
			</div>
		</div>

		<div class="layui-body">
			<iframe id="mainpage" src="../app/echart.html" style="width: 100%;"></iframe>
		</div>
		<div class="layui-footer">eliyanfei@126.com</div>
	</div>
</body>
<script type="text/javascript">
	$(document).ready(function() {
		$("#navbar-nav").createMenu1(menuJsons);
		$("#mainpage").height($(document).height() - 107);
	});
	layui.use('element', function() {
		var element = layui.element;
	});
	$('#logout').click(function() {
		$springboot.post("/login/logout", {}, function(rs) {
			location.href = $springboot.getContextPath() + "/login.html";
		});
	});
</script>
</html>
